package com.financegames.cashflow;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;

public class CashFlowGameActivity extends Activity {
    /** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main_menu);
        findViewById(R.id.button_new_game).
	        setOnClickListener(new View.OnClickListener() {
				
				@Override
				public void onClick(View v) {
					// TODO Auto-generated method stub
					Intent intent = new Intent(CashFlowGameActivity.this, NewGameActivity.class);
					startActivity(intent);
				}
			});
        findViewById(R.id.button_history).
	        setOnClickListener(new View.OnClickListener() {
				
				@Override
				public void onClick(View v) {
					// TODO Auto-generated method stub
					Intent intent = new Intent(CashFlowGameActivity.this, HistoryActivity.class);
					startActivity(intent);
				}
			});
        findViewById(R.id.button_preference).
	        setOnClickListener(new View.OnClickListener() {
				
				@Override
				public void onClick(View v) {
					// TODO Auto-generated method stub
					Intent intent = new Intent(CashFlowGameActivity.this, PreferenceActivity.class);
					startActivity(intent);
				}
			});
        findViewById(R.id.button_manual).
	        setOnClickListener(new View.OnClickListener() {
				
				@Override
				public void onClick(View v) {
					// TODO Auto-generated method stub
					Intent intent = new Intent(CashFlowGameActivity.this, ManualActivity.class);
					startActivity(intent);
				}
			});
    }
}